package com.dlc.shop.systemtest.api.amount;

import com.alibaba.fastjson.JSON;
import com.dlc.shop.bean.model.Area;
import com.dlc.shop.systemtest.constants.Constant;
import com.dlc.shop.systemtest.util.HttpUtil;

import java.util.List;

/**
 * @author lanhai
 */
public class AreaApi {
    public static List<Area> list(Area area){
        String url = Constant.SHOP_URL + "/admin/area/list";
        return JSON.parseArray(JSON.toJSONString(HttpUtil.get(url, List.class)), Area.class);
    }

}
